package com.share.design.flyweight.demo01;

/**
 * @author caifan
 * @since 2022/11/3
 */
public class ConcreteFlyweight implements Flyweight {
    private String uniqueKey;
    public ConcreteFlyweight(String key) {
        this.uniqueKey = key;
    }
    @Override
    public void operation(int state) {
        System.out.printf("=== 享元内部状态：%s,外部状态：%s%n",uniqueKey,state);
    }
}
